<table width="100%" border="0" cellspacing="0" cellpadding="2" class="sortable">
	<?php 
	echo $html->tableHeaders(array('No', __('name', true), __('state', true), __('kind', true), __('owner', true), __('batch', true), __('modify_date', true), __('creation_date', true), 'Actions'), 'class="details"'); 
	foreach ($tickets as $ticket) {
			echo $html->tableCells(array($link->projectLink($project_id, $project_name, "#" . $ticket['Ticket']['id'], '/tickets/view/'. $ticket['Ticket']['id']),
									$link->projectLink($project_id, $project_name, $ticket['Ticket']['name'], '/tickets/view/'. $ticket['Ticket']['id']),
									$ticket['Ticket']['status'],
									$ticket['Ticket']['kind'],
									$ticket['User']['firstname'] . " " .$ticket['User']['lastname'],
									$link->projectLink($project_id, $project_name, $ticket['Batch']['name'], '/batches/view/'. $ticket['Batch']['id']),
									$time->niceShort($ticket['Ticket']['update_date']),
									$time->niceShort($ticket['Ticket']['creation_date']),
									$allowDelete ? $link->projectLink($project_id, $project_name, __('edit', true), '/tickets/view/'. $ticket['Ticket']['id']). ' '. $html->link(__('delete', true), '/'.$project_name.'/'.$project_id.'/tickets/delete/'.$ticket['Ticket']['id'].'/', NULL, 'Are you sure ?') : ' '),
								 'class="odd"', 'class="even"');
	}		
	?>
</table>